﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NCT.Framework;
using System.Data;
using System.Data.Common;
using NCT.Framework.Database;

namespace VISS.API.Users {

    /// <summary>
    /// This class is used to get new messages info of users
    /// </summary>
    public class UserMessageNotificationBC {

        /// <summary>
        /// Gets new messages info of all users.
        /// </summary>
        /// <param name="startTime">The start time.</param>
        /// <param name="endTime">The end time.</param>
        /// <returns></returns>
        public static List<UserMessageNotificationEnt> GetAll(DateTime startTime, DateTime endTime) {
            string connectionName = ConfigInfo.ConnectionName;

            return UserMessageNotificationDA.GetByQueryString(startTime, endTime, connectionName, null, null);
        }
    }
}
